/*
============================================================================
 Name        : myJpegDocument.cpp
 Author      : 
 Version     :
 Copyright   : Your copyright notice
 Description : Application document class (model)
============================================================================
*/

// INCLUDE FILES
#include "myJpegAppUi.h"
#include "myJpegDocument.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CmyJpegDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CmyJpegDocument* CmyJpegDocument::NewL( CEikApplication&
                                                          aApp )
    {
    CmyJpegDocument* self = NewLC( aApp );
    CleanupStack::Pop( self );
    return self;
    }

// -----------------------------------------------------------------------------
// CmyJpegDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CmyJpegDocument* CmyJpegDocument::NewLC( CEikApplication&
                                                           aApp )
    {
    CmyJpegDocument* self =
        new ( ELeave ) CmyJpegDocument( aApp );

    CleanupStack::PushL( self );
    self->ConstructL();
    return self;
    }

// -----------------------------------------------------------------------------
// CmyJpegDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CmyJpegDocument::ConstructL()
    {
    // No implementation required
    }

// -----------------------------------------------------------------------------
// CmyJpegDocument::CmyJpegDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CmyJpegDocument::CmyJpegDocument( CEikApplication& aApp )
    : CAknDocument( aApp )
    {
    // No implementation required
    }

// ---------------------------------------------------------------------------
// CmyJpegDocument::~CmyJpegDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CmyJpegDocument::~CmyJpegDocument()
    {
    // No implementation required
    }

// ---------------------------------------------------------------------------
// CmyJpegDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CmyJpegDocument::CreateAppUiL()
    {
    // Create the application user interface, and return a pointer to it;
    // the framework takes ownership of this object
    return ( static_cast <CEikAppUi*> ( new ( ELeave )
                                        CmyJpegAppUi ) );
    }

// End of File
